home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / AppsToGo / AppsToGo.src / DTS.Lib / DTS.Lib_strings.make < prev    next >
Encoding:
Text File  |  1993-06-18  |  1.9 KB  |  64 lines  |  [TEXT/MPS ]

  1. #------------------------------------------------------------------------------
  2. #
  3. #    Apple Macintosh Developer Technical Support
  4. #
  5. #    Program:    DTS.Lib_strings
  6. #    File:        DTS.Lib_strings.make
  7. #
  8. #    Copyright © 1988-1991 Apple Computer, Inc.
  9. #    All rights reserved.
  10. #
  11. #------------------------------------------------------------------------------
  12.  
  13. LibName            =    'DTS.Lib_strings'
  14.  
  15. DTS.Lib.hdrs    =   ":DTS.Lib.headers:"
  16. projsrc            =    :
  17. obj                =     :OBJECT:
  18.  
  19. SymOptions        =    #-sym on                    # turn this on to debug with SADE
  20.  
  21. IncludesFolders    =    -i {DTS.Lib.hdrs}
  22. COptions        =    {IncludesFolders} {SymOptions} -r -mbg on
  23. LibOptions        =    {SymOptions}
  24.  
  25. #------------------------------------------------------------------------------
  26. # These are modified default build rules.  This is necessary to take into
  27. # account differences between MPW 3.1 and 3.2
  28. #------------------------------------------------------------------------------
  29. {obj}            ƒ    {projsrc}
  30.  
  31. {obj}.c.o        ƒ    {projsrc}.c
  32.     {C} {COptions} {CAltOptions} {DepDir}{Default}.c -o {TargDir}{Default}.c.o
  33.  
  34. #------------------------------------------------------------------------------
  35. # These are the objects that we want to include in the library.
  36. #------------------------------------------------------------------------------
  37. LibObjects        =    ∂
  38.                     {obj}stringutils.c.o
  39.  
  40. {LibName}            ƒƒ ShellForce
  41.  
  42. # With the above rule, {LibName} will always be out of date with respect to
  43. # the non-existent file ShellForce.  This will force the following commands to
  44. # be executed.
  45. ShellForce            ƒ
  46.     BEGIN
  47.         IF "{ShellVersion}" == ""
  48.             ( EVALUATE "`Version`" =~ /MPW Shell≈ ([0-9]+(.[ab0-9]+)+)®1≈/ ) ∑ Dev:Null
  49.             SET ShellVersion "{®1}"
  50.         END
  51.         IF "{ShellVersion}" =~ /3.[01]≈/
  52.             SET PAltOptions "-d MPW32=FALSE"
  53.             SET CAltOptions "-d MPW31"
  54.         ELSE
  55.             SET PAltOptions "-d MPW32=TRUE"
  56.             SET CAltOptions "-d MPW32"
  57.         END
  58.     END ∑ Dev:Null # Output to bit bucket so we don’t see above calculations
  59.  
  60.  
  61. {LibName}            ƒƒ {LibObjects}
  62.     Lib {LibObjects} {LibOptions} -o {Targ}
  63.  
  64.